Optimal. Leaf size=220 \[ -\frac {2 d^2 \cos (e+f x)}{(b c-a d) \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}-\frac {2 d E\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {c+d \sin (e+f x)}}{(b c-a d) \left (c^2-d^2\right ) f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}+\frac {2 b \Pi \left (\frac {2 b}{a+b};\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{(a+b) (b c-a d) f \sqrt {c+d \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.40, antiderivative size = 220, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.259, Rules used = {2881, 3138,
2734, 2732, 12, 2886, 2884} \begin {gather*} -\frac {2 d^2 \cos (e+f x)}{f \left (c^2-d^2\right ) (b c-a d) \sqrt {c+d \sin (e+f x)}}-\frac {2 d \sqrt {c+d \sin (e+f x)} E\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 d}{c+d}\right )}{f \left (c^2-d^2\right ) (b c-a d) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}+\frac {2 b \sqrt {\frac {c+d \sin (e+f x)}{c+d}} \Pi \left (\frac {2 b}{a+b};\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 d}{c+d}\right )}{f (a+b) (b c-a d) \sqrt {c+d \sin (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 2732
Rule 2734
Rule 2881
Rule 2884
Rule 2886
Rule 3138
Rubi steps
\begin {align*} \int \frac {1}{(a+b \sin (e+f x)) (c+d \sin (e+f x))^{3/2}} \, dx &=-\frac {2 d^2 \cos (e+f x)}{(b c-a d) \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}+\frac {2 \int \frac {\frac {1}{2} \left (-a c d+b \left (c^2-d^2\right )\right )-\frac {1}{2} d (b c+a d) \sin (e+f x)-\frac {1}{2} b d^2 \sin ^2(e+f x)}{(a+b \sin (e+f x)) \sqrt {c+d \sin (e+f x)}} \, dx}{(b c-a d) \left (c^2-d^2\right )}\\ &=-\frac {2 d^2 \cos (e+f x)}{(b c-a d) \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}-\frac {2 \int -\frac {b^2 d \left (c^2-d^2\right )}{2 (a+b \sin (e+f x)) \sqrt {c+d \sin (e+f x)}} \, dx}{b d (b c-a d) \left (c^2-d^2\right )}-\frac {d \int \sqrt {c+d \sin (e+f x)} \, dx}{(b c-a d) \left (c^2-d^2\right )}\\ &=-\frac {2 d^2 \cos (e+f x)}{(b c-a d) \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}+\frac {b \int \frac {1}{(a+b \sin (e+f x)) \sqrt {c+d \sin (e+f x)}} \, dx}{b c-a d}-\frac {\left (d \sqrt {c+d \sin (e+f x)}\right ) \int \sqrt {\frac {c}{c+d}+\frac {d \sin (e+f x)}{c+d}} \, dx}{(b c-a d) \left (c^2-d^2\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}\\ &=-\frac {2 d^2 \cos (e+f x)}{(b c-a d) \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}-\frac {2 d E\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {c+d \sin (e+f x)}}{(b c-a d) \left (c^2-d^2\right ) f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}+\frac {\left (b \sqrt {\frac {c+d \sin (e+f x)}{c+d}}\right ) \int \frac {1}{(a+b \sin (e+f x)) \sqrt {\frac {c}{c+d}+\frac {d \sin (e+f x)}{c+d}}} \, dx}{(b c-a d) \sqrt {c+d \sin (e+f x)}}\\ &=-\frac {2 d^2 \cos (e+f x)}{(b c-a d) \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}-\frac {2 d E\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {c+d \sin (e+f x)}}{(b c-a d) \left (c^2-d^2\right ) f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}+\frac {2 b \Pi \left (\frac {2 b}{a+b};\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{(a+b) (b c-a d) f \sqrt {c+d \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 26.71, size = 617, normalized size = 2.80 \begin {gather*} -\frac {\frac {4 d^2 \cos (e+f x)}{\left (c^2-d^2\right ) \sqrt {c+d \sin (e+f x)}}+\frac {\frac {4 i (b c+a d) \left ((-b c+a d) F\left (i \sinh ^{-1}\left (\sqrt {-\frac {1}{c+d}} \sqrt {c+d \sin (e+f x)}\right )|\frac {c+d}{c-d}\right )-a d \Pi \left (\frac {b (c+d)}{b c-a d};i \sinh ^{-1}\left (\sqrt {-\frac {1}{c+d}} \sqrt {c+d \sin (e+f x)}\right )|\frac {c+d}{c-d}\right )\right ) \sec (e+f x) \sqrt {-\frac {d (-1+\sin (e+f x))}{c+d}} \sqrt {\frac {d (1+\sin (e+f x))}{-c+d}}}{b \sqrt {-\frac {1}{c+d}} (b c-a d)}-\frac {2 i \left (-2 b (c-d) (b c-a d) E\left (i \sinh ^{-1}\left (\sqrt {-\frac {1}{c+d}} \sqrt {c+d \sin (e+f x)}\right )|\frac {c+d}{c-d}\right )+d \left (2 (a+b) (-b c+a d) F\left (i \sinh ^{-1}\left (\sqrt {-\frac {1}{c+d}} \sqrt {c+d \sin (e+f x)}\right )|\frac {c+d}{c-d}\right )+\left (-2 a^2+b^2\right ) d \Pi \left (\frac {b (c+d)}{b c-a d};i \sinh ^{-1}\left (\sqrt {-\frac {1}{c+d}} \sqrt {c+d \sin (e+f x)}\right )|\frac {c+d}{c-d}\right )\right )\right ) \sec (e+f x) \sqrt {-\frac {d (-1+\sin (e+f x))}{c+d}} \sqrt {\frac {d (1+\sin (e+f x))}{-c+d}}}{b \sqrt {-\frac {1}{c+d}} (b c-a d)}+\frac {2 \left (2 b c^2-2 a c d-3 b d^2\right ) \Pi \left (\frac {2 b}{a+b};\frac {1}{4} (-2 e+\pi -2 f x)|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{(a+b) \sqrt {c+d \sin (e+f x)}}}{(c-d) (c+d)}}{2 (b c-a d) f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(609\) vs.
\(2(276)=552\).
time = 19.35, size = 610, normalized size = 2.77
method | result | size |
default | \(\frac {\sqrt {-\left (-d \sin \left (f x +e \right )-c \right ) \left (\cos ^{2}\left (f x +e \right )\right )}\, \left (\frac {d \left (\frac {2 d \left (\cos ^{2}\left (f x +e \right )\right )}{\left (c^{2}-d^{2}\right ) \sqrt {-\left (-d \sin \left (f x +e \right )-c \right ) \left (\cos ^{2}\left (f x +e \right )\right )}}+\frac {2 c \left (\frac {c}{d}-1\right ) \sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}\, \sqrt {\frac {d \left (1-\sin \left (f x +e \right )\right )}{c +d}}\, \sqrt {\frac {\left (-\sin \left (f x +e \right )-1\right ) d}{c -d}}\, \EllipticF \left (\sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}, \sqrt {\frac {c -d}{c +d}}\right )}{\left (c^{2}-d^{2}\right ) \sqrt {-\left (-d \sin \left (f x +e \right )-c \right ) \left (\cos ^{2}\left (f x +e \right )\right )}}+\frac {2 d \left (\frac {c}{d}-1\right ) \sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}\, \sqrt {\frac {d \left (1-\sin \left (f x +e \right )\right )}{c +d}}\, \sqrt {\frac {\left (-\sin \left (f x +e \right )-1\right ) d}{c -d}}\, \left (\left (-\frac {c}{d}-1\right ) \EllipticE \left (\sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}, \sqrt {\frac {c -d}{c +d}}\right )+\EllipticF \left (\sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}, \sqrt {\frac {c -d}{c +d}}\right )\right )}{\left (c^{2}-d^{2}\right ) \sqrt {-\left (-d \sin \left (f x +e \right )-c \right ) \left (\cos ^{2}\left (f x +e \right )\right )}}\right )}{a d -b c}-\frac {2 \left (\frac {c}{d}-1\right ) \sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}\, \sqrt {\frac {d \left (1-\sin \left (f x +e \right )\right )}{c +d}}\, \sqrt {\frac {\left (-\sin \left (f x +e \right )-1\right ) d}{c -d}}\, \EllipticPi \left (\sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}, \frac {-\frac {c}{d}+1}{-\frac {c}{d}+\frac {a}{b}}, \sqrt {\frac {c -d}{c +d}}\right )}{\left (a d -b c \right ) \sqrt {-\left (-d \sin \left (f x +e \right )-c \right ) \left (\cos ^{2}\left (f x +e \right )\right )}\, \left (-\frac {c}{d}+\frac {a}{b}\right )}\right )}{\cos \left (f x +e \right ) \sqrt {c +d \sin \left (f x +e \right )}\, f}\) | \(610\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\left (a + b \sin {\left (e + f x \right )}\right ) \left (c + d \sin {\left (e + f x \right )}\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {1}{\left (a+b\,\sin \left (e+f\,x\right )\right )\,{\left (c+d\,\sin \left (e+f\,x\right )\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________